# v442 - Warning Acknowledgement Filters and Acknowledgement Context Hardening

## Decision

Reviewed v441 lifecycle audit-note filters and export polish, then proceeded with warning acknowledgement filters and acknowledgement context hardening.

This was the safer next step because lifecycle audit-note filters are now available, but the warning acknowledgement trail needed clearer current-vs-changed context before any payment collection, customer portal sessions, webhook subscription mutation, trial-to-paid conversion, hard billing gates, broker distribution limits, owned portal rules, or internal load-board access.

## Product changes

- Added Super Admin-only warning acknowledgement review API at `/api/admin/subscription-lifecycle/warning-acknowledgement`.
- Hardened Workspace Billing warning acknowledgement records with workspace slug, workspace type, account class, warning status, subscription status, provider sync status, plan name, signal count, current next steps, and review-only acknowledgement effect.
- Extended the Workspace Billing warning acknowledgement payload so Workspace Admin can see whether the current notice is not acknowledged, already acknowledged, or changed since the last acknowledgement.
- Extended `SubscriptionLifecycleBillingSyncService` with warning acknowledgement state per workspace row.
- Added acknowledgement states for needs acknowledgement, acknowledged current status, changed since acknowledgement, history only, and no warning needed.
- Added warning acknowledgement summary counts by state, severity, and warning status.
- Added a Super Admin Acknowledgements filter to the Subscription lifecycle panel.
- Added a warning acknowledgement context panel to `/admin/subscriptions`.
- Added warning acknowledgement context columns to the lifecycle CSV export.
- Added a focused warning acknowledgement CSV export.
- Updated Workspace Admin `/billing` notice acknowledgement copy so changed notices can be acknowledged again while already-current acknowledgements remain disabled.
- Stored acknowledgement context in existing `SuperAdminAuditEvent` records; no Prisma schema change was required.

## Visible result

### In Super Admin

At `/admin/subscriptions`, the **Subscription lifecycle** panel now shows stronger warning acknowledgement context. Super Admin can see how many workspace rows still need acknowledgement, how many are acknowledged for the current notice, and how many changed after the latest acknowledgement.

Super Admin can filter lifecycle rows by acknowledgement state and export warning acknowledgement context for review.

### In Workspace Admin

At `/billing`, the soft **Subscription notice** acknowledgement area now explains whether the current notice has been acknowledged or whether the warning changed since the previous acknowledgement.

If the notice changed, Workspace Admin can acknowledge the current notice again. Acknowledgement still does not hide the notice, collect payment, open a payment page, change subscription status, or change access.

### In Dispatch Workspace

No dispatch workflow is blocked.

### In Driver, Broker, Company/Fleet, and Carrier Workspaces

No workflow or access rule changed.

## Guardrails preserved

- No payment collection was activated.
- No customer portal session creation was activated.
- No webhook subscription mutation was activated.
- No trial-to-paid conversion was activated.
- No billing status mutation was activated.
- No hard billing gates were activated.
- No broker distribution limits changed.
- No owned portal rules changed.
- No internal load-board access changed.
- Warning acknowledgements still do not mute warnings.
- Warning acknowledgements still do not change access.

## Validation

- Local Dispatch Spot import preflight passed.
- Targeted TypeScript/TSX syntax transpile checks passed for the changed source files.
- Prisma schema changed: no.